import request from '@/utils/request.js'
import api from './apis.js'

export function getWarnList (params) {
	return request(api.WarnList, 'GET', params)
	// return request(`${api.WarnList}?areaIds=${ids}${params}`, 'GET')
}

export function getWarnCnt (params) {
	return request(api.GetCntByProject, 'GET', params)
}

export function getWarnDetail (id) {
	return request(`${api.WarnDetail}/${id}`, 'GET')
}

export function getWarnList2 (params) {
	return request(api.WarnList, 'GET', params)
}

export function getWarnList3 (params) {
	return request(api.WarnList2, 'GET', params)
}

export function updateFlag (ids) {
	return request(`${api.UpdateFlag}?ids=${ids}`, 'POST')
}
